//
//  MyAccountInforCell.m
//  NtoccShipper
//
//  Created by zcj on 2021/9/17.
//  Copyright © 2021 zhuchongjin. All rights reserved.
//

#import "MyAccountInforCell.h"

@interface MyAccountInforCell()
@property (nonatomic,strong) UIImageView *imgRight;
@property (nonatomic,strong) UILabel *labTitle;
@property (nonatomic,strong) UILabel *labDetail;
@end
@implementation MyAccountInforCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setCellInfoWithWithTitle:(NSString *)strTitle myBankBalance:(NSString *)strMyBank platformBalance:(NSString *)strPlatform fenPYe:(NSString *)fenPYe bFenPYe:(NSString *)bFenPYe weishou:(double)weishou yikaip:(double)yikaipiao weikaip:(double)weikaipiao pufaBalance:(NSString *)pufaBalance hatBalance:(NSString *)hatBalance gdBalance:(NSString *)gdBalance{
    
    self.labTitle.text = strTitle;
    self.imgRight.hidden = [strTitle isEqualToString:@"平台余额"] ? YES:NO;
    
    [self.imgRight.image imageChangeColor:[UIColor cjLightGrayColor]];
    
    if ([strTitle isEqualToString:@"平台余额"]) {
        self.labDetail.text = strPlatform;
    }else if ([strTitle isEqualToString:@"浦发余额"]){
        self.labDetail.text = pufaBalance;
    }else if ([strTitle isEqualToString:@"快钱余额"]){
        self.labDetail.text = hatBalance;
    }else if ([strTitle isEqualToString:@"光大余额"]){
        self.labDetail.text = gdBalance;
    }else if ([strTitle isEqualToString:@"已分配余额"]){
        self.labDetail.text = fenPYe;
        self.imgRight.hidden = YES;
    }else if ([strTitle isEqualToString:@"分配余额"]){
        self.labDetail.text = bFenPYe;
        self.imgRight.hidden = YES;
    }else if ([strTitle isEqualToString:@"待付金额"]){
        self.labDetail.text = CJStringWithFormat(@"%.2f",weishou);
        self.imgRight.hidden = YES;
    }else if ([strTitle isEqualToString:@"未开票金额"]){
        self.labDetail.text = CJStringWithFormat(@"%.2f",weikaipiao);
        self.imgRight.hidden = YES;
    }else if ([strTitle isEqualToString:@"已开票金额"]){
        self.labDetail.text = CJStringWithFormat(@"%.2f",yikaipiao);
        self.imgRight.hidden = YES;
    }else{
        self.labDetail.text = @"";
    }
    
}


@end
